{% extends 'backend/bases.html' %}


{% block article %}


<table class="table table-hover table-striped">
                    <thead>
                        <tr>
                            <th>标题</th>
                            <th>发布时间</th>
                            <th>评论数</th>
                            <th>点赞数</th>
                            <th>点踩数</th>
                            <th>操作</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for article_obj in page_queryset %}
                            <tr>
                                <td><a href="/{{ request.user.username }}/articles/{{ article_obj.pk }}">{{ article_obj.title }}</a></td>
                                <td>{{ article_obj.create_time|date:'Y-m-d H:i' }}</td>
                                <td>{{ article_obj.comment_num }}</td>
                                <td>{{ article_obj.up_num }}</td>
                                <td>{{ article_obj.down_num }}</td>
                                <td><a href="/edit/article/?edit_id={{ article_obj.pk }}">编辑</a></td>
                                <td><a class="delBtn" delete_id="{{ article_obj.pk }}">删除</a></td>
                            </tr>
                        {% endfor %}

                    </tbody>
                </table>
<div class="text-center">{{ page_obj.page_html|safe }}</div>
  {% endblock %}